﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<nelech.Models.DBModel.Forum>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	עריכת תגובה
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">

    <script src="../../Scripts/tinymce/jscripts/tiny_mce/tiny_mce.js" type="text/javascript"></script>

    <script type="text/javascript">
       

        tinyMCE.init({ theme: "advanced",
            mode: "exact",
            elements: "text",
            plugins: "fullpage,paste,table,contextmenu",
            theme_advanced_buttons3_add: "fullpage,pastetext,pasteword,selectall",
            paste_remove_styles: false,
            paste_remove_styles_if_webkit: false,
            paste_remove_spans: false,
            paste_use_dialog: true,
            paste_auto_cleanup_on_paste: true,
            paste_convert_middot_lists: false,
            paste_unindented_list_class: "unindentedList",
            paste_convert_headers_to_strong: true,
            theme_advanced_toolbar_location: "top",
            theme_advanced_toolbar_align: "left",
            init_instance_callback: "myCustomInitInstance",
            content_css: "/Content/tinymce.css"
        });

        

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    
<% using (Html.BeginForm("EditResponse", "Forum", FormMethod.Post, new { enctype = "multipart/form-data"}))
       {%>
    <fieldset>
        <legend>הוסף תגובה</legend>
        <input type="hidden" name="text" value="<%= Model.text %>" " />
         <input type="hidden" name="id" value="<%= Model.id %>" />
      <input type="hidden" value="<%= Model.p_id %>" name="p_id"/>
       <input type="hidden" value="<%= Model.s_id %>" name="s_id"/>
        <input type="hidden" value="<%= Model.ForumCategory.id%>" name="c_id"/>
        <div>
            <p>
                <label for="title">
                    כותרת:</label>
                <%= Html.TextBox("title") %>
                <%= Html.ValidationMessage("title") %>
            </p>
            <div>
                <%=Html.TextArea("text", new {rows="15", cols="10", id="text"})%>
            </div>
             <p>
                <label for="movie">
                    לשבץ סרטון:</label>
                <%= Html.TextBox("movie") %>
               
            </p>
           <p>
           <label for="block" class="label1">לחסום את שם המשתמש:</label>
           <%= Html.CheckBox("block") %>
           </p>
        </div>
        <div class="floatleft">
            <span class="feedbackButton">
                <input type="submit" value="פרסם" /></span> 
        </div>
    </fieldset>
    <% } %>
</asp:Content>


